package com.zhou.base.components.bs.common.enums;

/**
 * @author xianfeng
 * @date 2023/8/18 10:28
 * @description:
 */
public enum InterfaceMethodEnum {
    POST,
    PUT,
    DELETE,
    GET,
    TRACE;

    public static boolean isValid(String name) {
        for (InterfaceMethodEnum methodEnum : InterfaceMethodEnum.values()) {
            if (methodEnum.name().equals(name)) {
                return true;
            }
        }
        return false;
    }

}
